#include "piratename.h"

PirateName::PirateName() {}

bool PirateName::load() {
    ifstream file;
    file.open("firstName.txt");

	if (file) {							// IF the file actually exists:
		while (file) {					// WHILE the file still has lines to read,
			string name; file >> name;	// load them
			firstNames.push_back(name);	// and store them in the vector
		}
		firstNames.pop_back();			// delete the blank one on the end (probably should fix this soon)
		file.close();					// close the file
	} else { return false; }			// IF IT DOES NOT EXIST, EXIT PROGRAM	
	
	// put middleName and lastName here

	return true;
}

std::string PirateName::toString() {

}

void PirateName::geenrate() {

}

void PirateName::writeToFile() {
	
}
